var express = require('express');
const { response } = require('../app');
var router = express.Router();
const userController = require('../controller/userController')
/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.post('/login',(req,resp) => {
  console.log('拦截请求');
  userController.login(req,resp)
})

router.post('/getData',userController.getData)

module.exports = router;
